{% extends "pinksearch.html" %}

{% block content %}
<div class="results">
<div id="search-resume">
{{ first|add:1 }} - {{ last }} of {{ totalhits|thousands }} for <strong>{{ query }}</strong>
</div>
<table width="100%">
<tr>
	<td valign="top">
    {% for result in results %}
		    <div class="result">
			    <div class="result-title"><a href="{{ result.clickurl }}">{{ result.title }}</a></div>
			    <div class="result-desc">{{ result.abstract }}</div>
			    <div class="result-url">{{ result.url|truncate:100 }} - {{ result.size|filesizeformat }}</div>
		    </div>
    {% endfor %}
	</td>
	<td align="right" valign="top">
		<a href="http://www.irudik.com/"><img src="/images/ad.png" border=0></a>
	</td>
</tr>
</table>
</div>

<div style="text-align:center; margin-bottom:30px;">
    {% for page in npage|page_range:totalhits %}
        {% ifequal page npage %}
            <strong><span style="margin: 10px; text-align:center">{{ page|add:1 }}</span></strong>
        {% else %}
            <a href="/search?q={{ query }}&start={{ page|mult:10 }}" style="margin: 10px; text-align:center">{{ page|add:1 }}</a>
        {% endifequal %}
    {% endfor %}
</div>
	
{% endblock %}
